package com.huqing.icu.dto;

import com.huqing.icu.model.House;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.sql.Timestamp;

/**
 * 房源dto
 *
 * @author huqing
 * @date 2024-07-11 19:32
 */
@Data
public class HouseDto extends House {

    /****************************房源审核状态*******************************/
    /**
     * @see com.huqing.icu.enums.HouseApproveStatusEnum
     */
    @Schema(name = "approveStatus", description = "审核状态 10-草稿 20-待审核 30-审核通过 40-审核未通过")
    private Integer approveStatus;

    @Schema(name = "approveContent", description = "审核意见")
    private String approveContent;

    @Schema(name = "approveUserId", description = "审核人id")
    private Long approveUserId;

    @Schema(name = "approveTime", description = "审核时间")
    private Timestamp approveTime;


    /****************************用户信息*******************************/

    @Schema(name = "nickname", description = "用户昵称")
    private String nickname;

    @Schema(name = "avatar", description = "用户头像")
    private String avatar;



    /*****************  house_interaction_panel 面板表：点赞量、收藏量等信息*************************/

    @Schema(name = "actualViewCount", description = "真实的浏览量")
    private Integer actualViewCount;

    @Schema(name = "actualViewUserCount", description = "真实的点击量")
    private Integer actualViewUserCount;

    @Schema(name = "actualLikeCount", description = "真实的喜欢量")
    private Integer actualLikeCount;

    @Schema(name = "actualFavoriteCount", description = "真实的收藏量")
    private Integer actualFavoriteCount;

    @Schema(name = "actualCommentCount", description = "真实的评论量")
    private Integer actualCommentCount;
}
